package baseObjectDecorator;
import baseObject.IBrick;
import baseObject.RectObj;

public abstract class BrickDecorator extends RectObjDecorator implements IBrick{
	private IBrick delegate;

	public BrickDecorator(IBrick delegate){
		super((RectObj) delegate);
		this.delegate = delegate;
	}

	public boolean isBreakable() {
		return this.delegate.isBreakable();
	}

	public int getResistance() {
		return this.delegate.getResistance();
	}

	public void setBreakeable(boolean breakeable) {
		this.delegate.setBreakeable(breakeable);
	}

	public void setResistance(int r) {
		this.delegate.setResistance(r);
	}

	public void hit() {		
		this.delegate.hit();
	}
	
	public Object cloneObj(){
		return this.delegate.cloneObj();
	}
}
